home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ahoy 1987 April
/
Ahoy_Magazine_87-04_1987_Double_L.d64
/
Animated Expan 3
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
530b
|
18 lines
0 poke646,1:poke53281,0:poke53280,0
1 rem ==================================
2 rem commodares problem #36-2 :
3 rem animated expansion
4 rem solution by
5 rem bing perry
6 rem ==================================
10 input"[147]enter number of spaces";s
20 input"enter word";a$ : l=len(a$)
30 print "[147]"a$ : gosub 100 : for k=1 to l-1
40 for j=1 to s : a$=left$(a$,(k-1)*(s+1)+j)+"."+right$(a$,l-k):print""+a$
50 gosub 100 : next : next
60 for k=l-1 to 1 step -1
70 for j=s to 1 step -1 : a$=left$(a$,(k-1)*(s+1)+j)+right$(a$,l-k)
80 print""+a$+" ":gosub 100 :next :next
90 end
100 for t=1 to 20 : next : return